package edu.whut.method;

import java.util.Random;

/*
* 随机数
* */
public class test07 {
    public static void main(String[] args) {
        Random r = new Random();
        //0-19
        int num = r.nextInt(10);
        //1-100
        int num1 = r.nextInt(100)+1;
        //20-80
        int num2 = r.nextInt(61)+20;
    }
}
